home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
NextAnswers
/
1404_proper_method_to_close_windows.rtf
< prev
next >
Wrap
Text File
|
1993-11-08
|
954b
|
30 lines
{\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f2\fmodern Ohlfs;}
\paperw10980
\paperh8500
\margl120
\margr120
{\colortbl;\red0\green0\blue0;\red84\green84\blue84;\red83\green83\blue83;}
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ulnone\fs28\fc0\cf0 Q: If I have a window delegate, which method should I use to close the window, the
\b close:
\b0 method or the
\b performClose:
\b0 method?\
\i \
\i0 A: The
\b performClose:
\b0 method should be used instead of
\b close:
\b0 because it sends a
\pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\b\fc1\cf1 windowWillClose:
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\b0\fc0\cf0 to its delegate, while the
\b close:
\b0 method doesn't. See the documentation in the reference manual about the window class for more information about these two methods.\
\
QA644\
\
Valid for 1.0, 2.0, 3.0\
\